//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_sales_contractList.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"Sales_contract":"","Goods_sub":"","Goods_name":"","Goods_size":"","Tax_exclusive_goods_price":"","Tax_exclusive_total_price":"","Total_price":"","Logistics_status":"","Goods_num":"","Goods_price":"","Install_status":"","Remark":""},
		editFormOptions: [{"title":"数量","field":"Goods_num","type":"text"},
                               {"title":"单价","field":"Goods_price","type":"text"},
                               {"title":"备注","field":"Remark","type":"text"},
                               {"key":"安装状态","data":[],"title":"安装状态","field":"Install_status","type":"select"},
                               {"type":"group"},
                               {"title":"父级ID","field":"Sales_contract"},
                               {"title":"商品编码","field":"Goods_sub"},
                               {"title":"商品名称","field":"Goods_name"},
                               {"title":"规格型号","field":"Goods_size"},
                               {"title":"无税单价","field":"Tax_exclusive_goods_price","type":"decimal"},
                               {"title":"无税总价","field":"Tax_exclusive_total_price","type":"decimal"},
                               {"title":"总价","field":"Total_price","type":"decimal"},
                               {"key":"发货状态","data":[],"title":"发货状态","field":"Logistics_status","type":"select"}],
		searchFormFields: {},
		searchFormOptions: [],
		columns: [{field:'Goods_sub',title:'商品编码',type:'string'},
                       {field:'Goods_name',title:'商品名称',type:'string'},
                       {field:'Goods_num',title:'数量',type:'float'},
                       {field:'Goods_size',title:'规格型号',type:'string'},
                       {field:'Goods_price',title:'单价',type:'decimal'},
                       {field:'Tax_exclusive_goods_price',title:'无税单价',type:'decimal'},
                       {field:'Tax_exclusive_total_price',title:'无税总价',type:'decimal'},
                       {field:'Total_price',title:'总价',type:'decimal'},
                       {field:'Logistics_status',title:'发货状态',type:'int',bind:{ key:'发货状态',data:[]}},
                       {field:'Install_status',title:'安装状态',type:'int',bind:{ key:'安装状态',data:[]}},
                       {field:'Remark',title:'备注',type:'string'}],
		table: {
			key: 'Sales_contractList',
			footer: "Foots",
			cnName: '销售合同明细',
			name: 'q_sales_contractList',
			url: "/q_sales_contractList/",
			sortName: "Goods_sub"
		}
	}
}
